package cn.sdhuijin.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author sunp@sdhuijin.cn:
 * @version 创建时间：2015年4月29日 上午11:05:58 类说明
 */
@Entity
@Table(name = "deduction")
public class Deduction extends IdEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	private Date date;

	private String operater;

	private double score;

	private String description;

	@ManyToOne
	private Appeal appeal;

	@ManyToOne
	private Target target;

	@ManyToOne
	private StandardItem standardItem;

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date
	 *            the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the operater
	 */
	public String getOperater() {
		return operater;
	}

	/**
	 * @param operater
	 *            the operater to set
	 */
	public void setOperater(String operater) {
		this.operater = operater;
	}

	/**
	 * @return the score
	 */
	public double getScore() {
		return score;
	}

	/**
	 * @param score
	 *            the score to set
	 */
	public void setScore(double score) {
		this.score = score;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the appeal
	 */
	public Appeal getAppeal() {
		return appeal;
	}

	/**
	 * @param appeal
	 *            the appeal to set
	 */
	public void setAppeal(Appeal appeal) {
		this.appeal = appeal;
	}

	/**
	 * @return the standardItem
	 */
	public StandardItem getStandardItem() {
		return standardItem;
	}

	/**
	 * @param standardItem
	 *            the standardItem to set
	 */
	public void setStandardItem(StandardItem standardItem) {
		this.standardItem = standardItem;
	}

	/**
	 * @return the target
	 */
	public Target getTarget() {
		return target;
	}

	/**
	 * @param target
	 *            the target to set
	 */
	public void setTarget(Target target) {
		this.target = target;
	}

}
